package com.o2o.content;

import org.apache.hadoop.hbase.util.Bytes;

public class HBaseContent {
	public static final String TIMESTAMP = "timestamp";
	
	//商品表product table
	public static final String HBASE_TABLE_PRODUCT = "product";
	public static final String HBASE_FAMILY_PRODUCT = "info";

	public static final String PRODUCT_ID = "id";
	public static final String PRODUCT_NAME = "name";
	public static final String PRODUCT_PRICE = "price";
	public static final String PRODUCT_TYPE = "type";
	public static final String PRODUCT_BRAND = "brand";
	public static final String PRODUCT_STATUS = "status";
	public static final String PRODUCT_MAIN_PICTURE = "main_picture";
	public static final String PRODUCT_DESCRIPTION = "description";
	public static final String PRODUCT_CATEGORY_NUMBER = "category_number";
	public static final String PRODUCT_UID = "uid";
	public static final String PRODUCT_SALE_NUM = "sale_num";
	public static final String PRODUCT_GRADE = "grade";
	
	
	//主题帖表topic table
	public static final String HBASE_TABLE_TOPIC = "topic";
	public static final String HBASE_FAMILY_TOPIC = "info";
	//final long uid,final String userName,final String topicTitle,final String topicString,final long productId
	public static final String TOPIC_ID = "id";
	public static final String TOPIC_UID = "uid";
	public static final String TOPIC_USER_NAME = "user_name";
	public static final String TOPIC_TITLE = "title";
	public static final String TOPIC_STRING = "string";
	public static final String TOPIC_PRODUCT_ID = "product_id";
	public static final String TOPIC_STATUS = "status";
	public static final String TOPIC_BROWSE_COUNT = "browse_count";
	public static final String TOPIC_CONTENT_COUNT = "content_count";
	public static final String TOPIC_USER_COUNT = "user_count";
	public static final String TOPIC_GREAT_COUNT = "great_count";
	public static final String TOPIC_PRODUCT_NAME = "product_name";
	public static final String TOPIC_PRODUCT_PCITURE = "product_picture";
	public static final String TOPIC_PRODUCT_TYPE = "product_type";
	
	//categoryNumber对应的topic关系表
	public static final String HBASE_TABLE_TOPIC_CATEGORY = "topic_category";
	public static final String HBASE_FAMILY_TOPIC_CATEGORY = "info";
	//关系表含有主题帖id和商品id
	public static final String TOPIC_CATEGORY_TOPIC_ID = "topic_id";
	public static final String TOPIC_CATEGORY_PRODUCT_ID = "product_id";
	public static final String TOPIC_CATEGORY_NUMBER = "number";
	
	public static final String HBASE_TABLE_CONTENT = "content";
	public static final String HBASE_FAMILY_CONTENT = "info";
	
	public static final String CONTENT_ID="id";
	public static final String CONTENT_CONTENT="content";
	public static final String CONTENT_TID="tid";
	public static final String CONTENT_UID="uid";
	public static final String CONTENT_GREAT="great";
	public static final String CONTENT_PID="pid";
	
	public static final String HBASE_TABLE_USER = "user";
	public static final String HBASE_FAMILY_USER = "info";
	
	public static final String USER_ID = "id";
	public static final String USER_NAME = "name";
	public static final String USER_PASSWD = "passwd";
	public static final String USER_EMAIL = "email";
	public static final String USER_STATUS = "status";
	public static final String USER_PICTURE = "picture";
	
	
}
